    /*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package telas;

import javax.swing.JOptionPane;

/**
 *
 * @author Tiago
 */
public class tela_principal extends javax.swing.JFrame {

    /**
     * Creates new form TelaInicial
     */
    public tela_principal() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jSeparator1 = new javax.swing.JSeparator();
        ControleEstoque = new java.awt.Button();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenuItem7 = new javax.swing.JMenuItem();
        jMenuItem17 = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu11 = new javax.swing.JMenu();
        jMenu12 = new javax.swing.JMenu();
        jButton6 = new javax.swing.JButton();
        jSeparator2 = new javax.swing.JSeparator();
        jPanel1 = new javax.swing.JPanel();
        jButton1 = new javax.swing.JButton();
        jButton5 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        sair = new javax.swing.JButton();
        backgrond = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        jMenuBar = new javax.swing.JMenuBar();
        controle = new javax.swing.JMenu();
        orcamentos = new javax.swing.JMenuItem();
        atualizar_precos_de_produtos = new javax.swing.JMenuItem();
        vendas_simples = new javax.swing.JMenuItem();
        encaminhar_pedidos_fornecedor = new javax.swing.JMenuItem();
        sair_sistema = new javax.swing.JMenuItem();
        cadastros = new javax.swing.JMenu();
        clientes = new javax.swing.JMenuItem();
        empresas = new javax.swing.JMenuItem();
        fornecedores = new javax.swing.JMenuItem();
        funcionarios = new javax.swing.JMenuItem();
        clientes1 = new javax.swing.JMenuItem();
        tabelas = new javax.swing.JMenu();
        categorias = new javax.swing.JMenuItem();
        projeto = new javax.swing.JMenuItem();
        linha = new javax.swing.JMenuItem();
        pecas = new javax.swing.JMenuItem();
        acabamento = new javax.swing.JMenu();
        jMenuItem50 = new javax.swing.JMenuItem();
        jMenuItem51 = new javax.swing.JMenuItem();
        jMenuItem52 = new javax.swing.JMenuItem();
        jMenuItem53 = new javax.swing.JMenuItem();
        jMenuItem54 = new javax.swing.JMenuItem();
        classificacao_dos_projetos = new javax.swing.JMenuItem();
        produtos = new javax.swing.JMenuItem();
        referencias_de_valores = new javax.swing.JMenuItem();
        posicao_do_pedido = new javax.swing.JMenuItem();
        situacao_do_orcamento = new javax.swing.JMenuItem();
        endereco = new javax.swing.JMenu();
        ruaav = new javax.swing.JMenuItem();
        bairro = new javax.swing.JMenuItem();
        cidade = new javax.swing.JMenuItem();
        estado = new javax.swing.JMenuItem();
        consultas = new javax.swing.JMenu();
        precos_dos_produtos = new javax.swing.JMenuItem();
        precos_dos_projetos = new javax.swing.JMenuItem();
        relatórios = new javax.swing.JMenu();
        jMenuItem18 = new javax.swing.JMenuItem();
        jMenuItem19 = new javax.swing.JMenuItem();
        jMenuItem20 = new javax.swing.JMenuItem();
        graficos = new javax.swing.JMenu();
        jMenu13 = new javax.swing.JMenu();
        jMenuItem34 = new javax.swing.JMenuItem();
        jMenuItem35 = new javax.swing.JMenuItem();
        jMenuItem36 = new javax.swing.JMenuItem();
        utilitarios = new javax.swing.JMenu();
        jMenu14 = new javax.swing.JMenu();
        jMenuItem37 = new javax.swing.JMenuItem();
        jMenuItem38 = new javax.swing.JMenuItem();
        jMenuItem39 = new javax.swing.JMenuItem();
        jMenu15 = new javax.swing.JMenu();
        jMenuItem40 = new javax.swing.JMenuItem();
        jMenuItem41 = new javax.swing.JMenuItem();
        jMenuItem42 = new javax.swing.JMenuItem();
        jMenuItem43 = new javax.swing.JMenuItem();
        jMenuItem46 = new javax.swing.JMenuItem();
        jMenu16 = new javax.swing.JMenu();
        jMenuItem44 = new javax.swing.JMenuItem();
        jMenuItem45 = new javax.swing.JMenuItem();
        jMenuItem48 = new javax.swing.JMenuItem();
        jMenuItem49 = new javax.swing.JMenuItem();
        jMenuItem47 = new javax.swing.JMenuItem();
        ajuda = new javax.swing.JMenu();
        jMenuItem23 = new javax.swing.JMenuItem();

        ControleEstoque.setBackground(new java.awt.Color(204, 204, 204));
        ControleEstoque.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        ControleEstoque.setLabel("Estoque");
        ControleEstoque.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ControleEstoqueActionPerformed(evt);
            }
        });

        jMenu1.setText("jMenu1");

        jMenuItem1.setText("jMenuItem1");

        jMenuItem7.setText("jMenuItem7");

        jMenuItem17.setText("jMenuItem17");

        jMenu2.setText("jMenu2");

        jMenu11.setText("File");
        jMenuBar1.add(jMenu11);

        jMenu12.setText("Edit");
        jMenuBar1.add(jMenu12);

        jButton6.setText("Estoque");
        jButton6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton6ActionPerformed(evt);
            }
        });

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Sistema VIDRAÇARIA [Tela Principal]");
        setResizable(false);

        jPanel1.setBackground(new java.awt.Color(204, 204, 204));

        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens_projeto/Icon 1.png"))); // NOI18N
        jButton1.setText("Estoque");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens_projeto/Icon 1.4.png"))); // NOI18N
        jButton5.setText("Orçamento");
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });

        jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens_projeto/Icon 1.2.png"))); // NOI18N
        jButton4.setText("Vendas Simples");
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });

        jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens_projeto/Icon 2.png"))); // NOI18N
        jButton3.setText("Preços dos Produtos");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        sair.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens_projeto/Icon 1.3.png"))); // NOI18N
        sair.setText("Sair do Sistema");
        sair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                sairActionPerformed(evt);
            }
        });

        backgrond.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens_projeto/VIDRAL LOGO 3.png"))); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(sair, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(backgrond, javax.swing.GroupLayout.PREFERRED_SIZE, 676, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(612, 612, 612))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jButton1)
                .addGap(18, 18, 18)
                .addComponent(jButton5)
                .addGap(12, 12, 12)
                .addComponent(jButton4)
                .addGap(18, 18, 18)
                .addComponent(jButton3)
                .addGap(18, 18, 18)
                .addComponent(sair)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addComponent(backgrond, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );

        controle.setText("Controle");

        orcamentos.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.CTRL_MASK));
        orcamentos.setText("Orçamentos");
        orcamentos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                orcamentosActionPerformed(evt);
            }
        });
        controle.add(orcamentos);

        atualizar_precos_de_produtos.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.CTRL_MASK));
        atualizar_precos_de_produtos.setText("Atualizar Preços de Produtos");
        atualizar_precos_de_produtos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                atualizar_precos_de_produtosActionPerformed(evt);
            }
        });
        controle.add(atualizar_precos_de_produtos);

        vendas_simples.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.CTRL_MASK));
        vendas_simples.setText("Vendas Simples");
        vendas_simples.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                vendas_simplesActionPerformed(evt);
            }
        });
        controle.add(vendas_simples);

        encaminhar_pedidos_fornecedor.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.CTRL_MASK));
        encaminhar_pedidos_fornecedor.setText("Encaminhar Pedidos para Fornecedor");
        controle.add(encaminhar_pedidos_fornecedor);

        sair_sistema.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));
        sair_sistema.setText("Sair do Sistema");
        sair_sistema.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                sair_sistemaActionPerformed(evt);
            }
        });
        controle.add(sair_sistema);

        jMenuBar.add(controle);

        cadastros.setText("Cadastros");
        cadastros.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                cadastrosMouseClicked(evt);
            }
        });

        clientes.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F2, 0));
        clientes.setText("Clientes");
        clientes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                clientesActionPerformed(evt);
            }
        });
        cadastros.add(clientes);

        empresas.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F3, 0));
        empresas.setText("Empresas");
        cadastros.add(empresas);

        fornecedores.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, 0));
        fornecedores.setText("Fornecedores");
        cadastros.add(fornecedores);

        funcionarios.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F5, 0));
        funcionarios.setText("Funcionários");
        cadastros.add(funcionarios);

        clientes1.setText("Usuário");
        clientes1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                clientes1ActionPerformed(evt);
            }
        });
        cadastros.add(clientes1);

        jMenuBar.add(cadastros);

        tabelas.setBorder(null);
        tabelas.setText("Tabelas");

        categorias.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.SHIFT_MASK));
        categorias.setText("Categorias");
        categorias.setBorder(null);
        tabelas.add(categorias);

        projeto.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.SHIFT_MASK));
        projeto.setText("Projeto");
        projeto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                projetoActionPerformed(evt);
            }
        });
        tabelas.add(projeto);

        linha.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.SHIFT_MASK));
        linha.setText("Linha");
        tabelas.add(linha);

        pecas.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.SHIFT_MASK));
        pecas.setText("Peças");
        tabelas.add(pecas);

        acabamento.setText("Acabamento");

        jMenuItem50.setText("Alumínio");
        acabamento.add(jMenuItem50);

        jMenuItem51.setText("Ferragem");
        acabamento.add(jMenuItem51);

        jMenuItem52.setText("Cor de vidro");
        acabamento.add(jMenuItem52);

        jMenuItem53.setText("Espessura de Vidro");
        acabamento.add(jMenuItem53);

        jMenuItem54.setText("Corte no Vidro");
        acabamento.add(jMenuItem54);

        tabelas.add(acabamento);

        classificacao_dos_projetos.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_J, java.awt.event.InputEvent.SHIFT_MASK));
        classificacao_dos_projetos.setText("Classificação dos Projetos");
        classificacao_dos_projetos.setBorder(null);
        tabelas.add(classificacao_dos_projetos);

        produtos.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_U, java.awt.event.InputEvent.SHIFT_MASK));
        produtos.setText("Produtos");
        tabelas.add(produtos);

        referencias_de_valores.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.SHIFT_MASK));
        referencias_de_valores.setText("Referências de Valores");
        tabelas.add(referencias_de_valores);

        posicao_do_pedido.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_I, java.awt.event.InputEvent.SHIFT_MASK));
        posicao_do_pedido.setText("Posição do Pedido");
        posicao_do_pedido.setBorder(null);
        tabelas.add(posicao_do_pedido);

        situacao_do_orcamento.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_M, java.awt.event.InputEvent.SHIFT_MASK));
        situacao_do_orcamento.setText("Situação do Orçamento");
        situacao_do_orcamento.setBorder(null);
        tabelas.add(situacao_do_orcamento);

        endereco.setText("Endereço");

        ruaav.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.SHIFT_MASK));
        ruaav.setText("Rua/Av.");
        endereco.add(ruaav);

        bairro.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_B, java.awt.event.InputEvent.SHIFT_MASK));
        bairro.setText("Bairro");
        endereco.add(bairro);

        cidade.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.SHIFT_MASK));
        cidade.setText("Cidade");
        endereco.add(cidade);

        estado.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.SHIFT_MASK));
        estado.setText("Estado");
        endereco.add(estado);

        tabelas.add(endereco);

        jMenuBar.add(tabelas);

        consultas.setText("Consultas");

        precos_dos_produtos.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F6, 0));
        precos_dos_produtos.setText("Preços dos Produtos");
        consultas.add(precos_dos_produtos);

        precos_dos_projetos.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F7, 0));
        precos_dos_projetos.setText("Preços dos Projetos");
        precos_dos_projetos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                precos_dos_projetosActionPerformed(evt);
            }
        });
        consultas.add(precos_dos_projetos);

        jMenuBar.add(consultas);

        relatórios.setText("Relatórios");

        jMenuItem18.setText("Orçamentos");
        jMenuItem18.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem18ActionPerformed(evt);
            }
        });
        relatórios.add(jMenuItem18);

        jMenuItem19.setText("Produtos");
        relatórios.add(jMenuItem19);

        jMenuItem20.setText("Projetos");
        jMenuItem20.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem20ActionPerformed(evt);
            }
        });
        relatórios.add(jMenuItem20);

        jMenuBar.add(relatórios);

        graficos.setText("Gráficos");

        jMenu13.setText("Orçamentos");

        jMenuItem34.setText("Por Vendedor");
        jMenu13.add(jMenuItem34);

        jMenuItem35.setText("Por Situação");
        jMenu13.add(jMenuItem35);

        jMenuItem36.setText("Por Cidade");
        jMenu13.add(jMenuItem36);

        graficos.add(jMenu13);

        jMenuBar.add(graficos);

        utilitarios.setText("Utilitários");

        jMenu14.setText("Backup");

        jMenuItem37.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK));
        jMenuItem37.setText("Agendamento");
        jMenu14.add(jMenuItem37);

        jMenuItem38.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_B, java.awt.event.InputEvent.CTRL_MASK));
        jMenuItem38.setText("Criar Backup");
        jMenu14.add(jMenuItem38);

        jMenuItem39.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.CTRL_MASK));
        jMenuItem39.setText("Restaurar Backup");
        jMenuItem39.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem39ActionPerformed(evt);
            }
        });
        jMenu14.add(jMenuItem39);

        utilitarios.add(jMenu14);

        jMenu15.setText("Aparência");

        jMenuItem40.setText("Por Vendedor");
        jMenu15.add(jMenuItem40);

        jMenuItem41.setText("Por Situação");
        jMenu15.add(jMenuItem41);

        jMenuItem42.setText("Por Cidade");
        jMenu15.add(jMenuItem42);

        utilitarios.add(jMenu15);

        jMenuItem43.setText("Calendário");
        utilitarios.add(jMenuItem43);

        jMenuItem46.setText("Calculadora");
        utilitarios.add(jMenuItem46);

        jMenu16.setText("Configurações");

        jMenuItem44.setText("Diversos");
        jMenuItem44.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem44ActionPerformed(evt);
            }
        });
        jMenu16.add(jMenuItem44);

        jMenuItem45.setText("Banco de Dados");
        jMenu16.add(jMenuItem45);

        jMenuItem48.setText("Solicitar novo Serial");
        jMenu16.add(jMenuItem48);

        jMenuItem49.setText("Conta de Envio de Email");
        jMenu16.add(jMenuItem49);

        utilitarios.add(jMenu16);

        jMenuItem47.setText("Suporte via email");
        utilitarios.add(jMenuItem47);

        jMenuBar.add(utilitarios);

        ajuda.setText("Ajuda");

        jMenuItem23.setText("Sobre");
        ajuda.add(jMenuItem23);

        jMenuBar.add(ajuda);

        setJMenuBar(jMenuBar);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(677, 677, 677)
                .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        setSize(new java.awt.Dimension(816, 600));
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    private void orcamentosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_orcamentosActionPerformed
        new prcamentos().setVisible(true);
        this.dispose();
        // TODO add your handling code here:
    }//GEN-LAST:event_orcamentosActionPerformed

    private void projetoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_projetoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_projetoActionPerformed

    private void jMenuItem20ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem20ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jMenuItem20ActionPerformed

    private void jMenuItem39ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem39ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jMenuItem39ActionPerformed

    private void jMenuItem44ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem44ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jMenuItem44ActionPerformed

    private void ControleEstoqueActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ControleEstoqueActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_ControleEstoqueActionPerformed

    private void sair_sistemaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sair_sistemaActionPerformed
        if (JOptionPane.showConfirmDialog(null, "Deseja Realmente Sair?", "WARNING",
                JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
            System.exit(0);
            // yes option
        } else {
            // no option
        }

    }//GEN-LAST:event_sair_sistemaActionPerformed

    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton6ActionPerformed

    private void cadastrosMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cadastrosMouseClicked

    }//GEN-LAST:event_cadastrosMouseClicked

    private void clientesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clientesActionPerformed
        new area_de_cadastros().setVisible(true);
        this.dispose();
    }//GEN-LAST:event_clientesActionPerformed

    private void precos_dos_projetosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_precos_dos_projetosActionPerformed
        preço_de_projetos frm3 = new preço_de_projetos();
        frm3.setVisible(true);
    }//GEN-LAST:event_precos_dos_projetosActionPerformed

    private void vendas_simplesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_vendas_simplesActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_vendas_simplesActionPerformed

    private void atualizar_precos_de_produtosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_atualizar_precos_de_produtosActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_atualizar_precos_de_produtosActionPerformed

    private void jMenuItem18ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem18ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jMenuItem18ActionPerformed

    private void sairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sairActionPerformed
        if (JOptionPane.showConfirmDialog(null, "Deseja Realmente Sair?", "AVISO!",
                JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
            System.exit(0);
            // yes option
        } else {
            // no option
        }
    }//GEN-LAST:event_sairActionPerformed

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton3ActionPerformed

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        telas.vendas_simples vendas_simples = new vendas_simples();
        vendas_simples.setVisible(true);
    }//GEN-LAST:event_jButton4ActionPerformed

    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton5ActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton1ActionPerformed

    private void clientes1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clientes1ActionPerformed
        telas.cadastro_usuario cadastro_usuario = new cadastro_usuario();
        cadastro_usuario.setVisible(true);
    }//GEN-LAST:event_clientes1ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                    
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(tela_principal.class
                    .getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(tela_principal.class
                    .getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(tela_principal.class
                    .getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(tela_principal.class
                    .getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>
        //</editor-fold>
        //</editor-fold>
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new tela_principal().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private java.awt.Button ControleEstoque;
    private javax.swing.JMenu acabamento;
    private javax.swing.JMenu ajuda;
    private javax.swing.JMenuItem atualizar_precos_de_produtos;
    private javax.swing.JLabel backgrond;
    private javax.swing.JMenuItem bairro;
    private javax.swing.JMenu cadastros;
    private javax.swing.JMenuItem categorias;
    private javax.swing.JMenuItem cidade;
    private javax.swing.JMenuItem classificacao_dos_projetos;
    private javax.swing.JMenuItem clientes;
    private javax.swing.JMenuItem clientes1;
    private javax.swing.JMenu consultas;
    private javax.swing.JMenu controle;
    private javax.swing.JMenuItem empresas;
    private javax.swing.JMenuItem encaminhar_pedidos_fornecedor;
    private javax.swing.JMenu endereco;
    private javax.swing.JMenuItem estado;
    private javax.swing.JMenuItem fornecedores;
    private javax.swing.JMenuItem funcionarios;
    private javax.swing.JMenu graficos;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu11;
    private javax.swing.JMenu jMenu12;
    private javax.swing.JMenu jMenu13;
    private javax.swing.JMenu jMenu14;
    private javax.swing.JMenu jMenu15;
    private javax.swing.JMenu jMenu16;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem17;
    private javax.swing.JMenuItem jMenuItem18;
    private javax.swing.JMenuItem jMenuItem19;
    private javax.swing.JMenuItem jMenuItem20;
    private javax.swing.JMenuItem jMenuItem23;
    private javax.swing.JMenuItem jMenuItem34;
    private javax.swing.JMenuItem jMenuItem35;
    private javax.swing.JMenuItem jMenuItem36;
    private javax.swing.JMenuItem jMenuItem37;
    private javax.swing.JMenuItem jMenuItem38;
    private javax.swing.JMenuItem jMenuItem39;
    private javax.swing.JMenuItem jMenuItem40;
    private javax.swing.JMenuItem jMenuItem41;
    private javax.swing.JMenuItem jMenuItem42;
    private javax.swing.JMenuItem jMenuItem43;
    private javax.swing.JMenuItem jMenuItem44;
    private javax.swing.JMenuItem jMenuItem45;
    private javax.swing.JMenuItem jMenuItem46;
    private javax.swing.JMenuItem jMenuItem47;
    private javax.swing.JMenuItem jMenuItem48;
    private javax.swing.JMenuItem jMenuItem49;
    private javax.swing.JMenuItem jMenuItem50;
    private javax.swing.JMenuItem jMenuItem51;
    private javax.swing.JMenuItem jMenuItem52;
    private javax.swing.JMenuItem jMenuItem53;
    private javax.swing.JMenuItem jMenuItem54;
    private javax.swing.JMenuItem jMenuItem7;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JMenuItem linha;
    private javax.swing.JMenuItem orcamentos;
    private javax.swing.JMenuItem pecas;
    private javax.swing.JMenuItem posicao_do_pedido;
    private javax.swing.JMenuItem precos_dos_produtos;
    private javax.swing.JMenuItem precos_dos_projetos;
    private javax.swing.JMenuItem produtos;
    private javax.swing.JMenuItem projeto;
    private javax.swing.JMenuItem referencias_de_valores;
    private javax.swing.JMenu relatórios;
    private javax.swing.JMenuItem ruaav;
    private javax.swing.JButton sair;
    private javax.swing.JMenuItem sair_sistema;
    private javax.swing.JMenuItem situacao_do_orcamento;
    private javax.swing.JMenu tabelas;
    private javax.swing.JMenu utilitarios;
    private javax.swing.JMenuItem vendas_simples;
    // End of variables declaration//GEN-END:variables
}
